Skip to content

Report every missing package in validate-cks-node - #14756

Open
bhouse-nexthop wants to merge 1 commit into
apache:4.22from
bhouse-nexthop:cks-validate-node-missing-pkgs
Open

bhouse-nexthop wants to merge 1 commit into
apache:4.22from
bhouse-nexthop:cks-validate-node-missing-pkgs

Conversation

@bhouse-nexthop

Copy link
Copy Markdown
Collaborator

Description

Fixes #14755

In validate-cks-node, the Debian/Ubuntu branch appended with MISSING_PACKAGES+="$package", which joins every name onto element 0.

Before After
append +="$package" +=("$package")
count printed always 1 real count
message curlgnupg-agent... curl gnupg-agent ...
exit status 1 1 (unchanged)

One-line change. The RPM branch already appends correctly.

Related open PRs #13714 and #13715 edit REQUIRED_PACKAGES in the same file. This PR does not touch the list, and their hunk still applies cleanly on top of it.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Bug Severity

  • Minor

How Has This Been Tested?

Ran lines 20-45 of the script in bash with OS=Ubuntu and dpkg stubbed by a shell function:

Case Output Exit
7 missing, before 1 + names run together 1
7 missing, after 7 + names separated by spaces 1
none missing, after 0 / 0 0

Not in scope (pre-existing, noted for follow-up)

  • RPM check rpm -qa \| grep $package is a substring match (curl matches libcurl).
  • dpkg -s exits 0 for a removed package that still has config files.

- Debian/Ubuntu branch appended with `+="$package"`, which glues the
  name onto element 0 instead of adding an element.
- Result: count always 1, names printed run together
  (e.g. "curlgnupg-agent"), so the log does not say what is missing.
- Use `+=("$package")` so each missing package is its own element.

Signed-off-by: Brad House <bhouse@nexthop.ai>
@codecov

codecov Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 18.32%. Comparing base (b56bbc2) to head (819789d).

Additional details and impacted files
@@             Coverage Diff              @@
##               4.22   #14756      +/-   ##
============================================
- Coverage     18.32%   18.32%   -0.01%     
- Complexity    16644    16645       +1     
============================================
  Files          5939     5939              
  Lines        537787   537787              
  Branches      65932    65932              
============================================
- Hits          98544    98536       -8     
- Misses       428033   428041       +8     
  Partials      11210    11210              
Flag Coverage Δ
uitests 4.08% <ø> (ø)
unittests 19.41% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant